<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- v-html解析标签 -->
    <div id="div" v-html="msg">
    </div>
</body>
<!-- 引入 Vue.js 2 库 -->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

<script>
    const app = new Vue({
        el: '#div',
        data: {
            //mgs必须在data里 
            msg: `<a href="http://www.baidu.com">666</a>`
        }
    });
</script>

</html>